import type { RouteRecordRaw } from 'vue-router'


export const staticRoutes: Array<RouteRecordRaw> = [
    {
        path: '/',
        redirect: '/index'
    },
	{
    path: '/login',
    name: 'Login',
    component: () => import('@/views/login/index.vue'),
    meta: {
      hidden: true
    }
    },
    {
        path: '/',
        name: '',
        component: () => import('@/views/index/index.vue')
      },
      {
        path: '/index',
        name: 'Index',
        component: () => import('@/views/index/index.vue')
      },
      {
        path:'/index/:id',
        name:'Navitem',
        component:()=>import('@/views/index/components/navItem.vue')
      },
	{
    path: '/center',
    name: 'Center',
    component: () => import('@/views/center/index.vue')
  },
  {
    path: '/buy',
    name: ' Buy',
    component: () => import('@/views/buy/index.vue')
  },
  {
    path: '/cate',
    name: 'Cate',
    component: () => import('@/views/cate/index.vue'),
    },
    {
        path: '/list',
        name: 'GoodsList',
        component: () => import('@/views/cate/goodsList/index.vue')
    },
    {
    path: '/detail',
    name: 'Detail',
    component: () => import('@/views/detail/index.vue'),
    meta:{
        hidden: true
    }
    },
	{
    path: '/search',
    name: 'Search',
    component: () => import('@/views/search/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/shopcart',
    name: 'Shopcart',
    component: () => import('@/views/shopcart/index.vue')
  },
    {
        path: '/trade',
        name: 'Trade',
        component: () => import('@/views/trade/index.vue'),
        meta:{
            hidden: true
        }
    },
    {
        path: '/order/:id',
        name: 'Order',
        component: () => import('@/views/order/index.vue'),
        // props:true,
        meta:{
            hidden: true
        }
    },
  {
    path: '/pay',
    name: 'Pay',
    component: () => import('@/views/pay/index.vue'),
    meta: {
      hidden: true
    }
  },
  {
    path: '/register',
    name: 'Register',
    component: () => import('@/views/register/index.vue'),
    meta: {
      hidden: true
    }
    },
    {
        path: '/404',
        name: '404',
        component: () => import('@/views/error/404.vue'),
        meta:{
            hidden: false
        }
      },
    

];